package cn.zfs.datasource.entity.model;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 数据库属性配置
 */
@Data
@ToString
public class DataSourceProperties {

    @NotBlank(message = "数据库连接的url不能为空")
    private String url = "jdbc:mysql://10.4.82.34:3306/car_server";
    @NotBlank(message = "数据库连接的tableSchema不能为空")
    private String tableSchema = "car_server";
    @NotBlank(message = "数据库连接的username不能为空")
    private String username = "root";
    @NotBlank(message = "数据库连接的password不能为空")
    private String password = "zfs199528";
    @NotBlank(message = "数据库连接的driverClassName不能为空")
    private String driverClassName = "com.mysql.jdbc.Driver";

}
